package com.yige.service;

import com.mongodb.DBObject;

import java.util.List;

/**
 * Created by sunhao on 2015/10/9 0009.
 */
public interface GoodsService extends BasicMongoService {

    /**
     * 商品入库
     */
    boolean storageGoods(String name, String storage_date, double cost, String info);


    /**
     * 查询已售出商品
     */
    List<DBObject> soldGoods();

    /**
     * 查询未售出商品
     */
    List<DBObject> notSoldGoods();

    /**
     * 添加出库商品
     * @return
     */
    boolean deliveryGoods(Object _id, double pay, String delivery_date, String info);


}
